/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package org.apache.services;

import java.util.Arrays;

/**
 * <p>Project: javase2203 - Test
 * <p>Powered by webrx On 2022-07-20 13:46:46
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Test {
    private String name = "hello";
    private int[] ages = {10,20,30};
    public static void main(String[] args) {
        Test t = new Test();
        t.change(t.name,t.ages);
        System.out.println(t.name); //hello
        System.out.println(Arrays.toString(t.ages));//[1000,20,30]
    }
    public void change(String name,int[] nn){
        name = new String("java");
        nn[0] = 1000;
    }
}
